package com.sakiko.utils;

import org.springframework.stereotype.Component;

import java.util.regex.Pattern;

@Component
public class UnicodeCleaner {
    public static String cleanUnicode(String input) {
        Pattern pattern = Pattern.compile("[^\\x00-\\x7F]");
        return pattern.matcher(input).replaceAll("");
    }
}